import StudentDistribution from "./StudentDistribution.js";
import NobelPrize from "./nobel.js";
import * as d3 from "d3";
import csv from "./assets/student.csv";
import nobelCsv from "./assets/nobel.csv";

d3.csv(csv).then((data, error) => { 
  if (error) {
    console.log(error);
  } else {
    StudentDistribution(data);
  };
});

d3.csv(nobelCsv).then((data, error) => { 
  if (error) {
    console.log(error);
  } else {
    NobelPrize(data);
  };
});